﻿using MetroDataApi.Models;
using MetroDataApi.Models.ModelDefination;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace MetroDataApi.Controllers
{
    public class MainStatusTimeListController : ApiController
    {


        // GET api/mainstatustimelist/5
        public string Get(int prjId)
        {
            using (var db = new MetroDataDataContext())
            {
                var list = ProjectStatusHelper.GetMainStatusGroup(prjId);

                return JsonConvert.SerializeObject(list);
            }
        }


    }
}
